<extend name="Public/base"/>
<block name="body">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>用户组</h5>

                </div>
                <div class="ibox-content">
                    <div class="row">

                        <div class="col-sm-3" >

                            <div class="input-group"  >



                                <span class="input-group-btn" ><button type="button" onClick="window.location.href='{:U('add')}'" class="btn btn-sm btn-primary" style="background-color: #00b7ee"> 添加分组</button> </span>
                            </div>
                        </div>


                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped" align="center">

                            <tr align="center" class="font-bold">
                                <td>序号</td>
                                <td>分组名称</td>
                                <td>状态</td>
                                <td>操作</td>
                            </tr>

                            <tbody>
                            <volist name="group" id="group">
                                <tr align="center">
                                    <td>
                                        {$group.id}
                                    </td>
                                    <td>{$group.group_name}</td>
                                    <td>
                                        <if condition="$group.status eq 1">
                                            <font color="red">禁用</font>
                                        <else/>
                                            <font color="#32cd32">正常</font>
                                        </if>
                                    </td>
                                    <td>
                                        <a href="{:U('Group/edit',array('id'=>$group['id']))}"><i class="fa fa-check text-navy">编辑</i></a>
                                        <a href="{:U('Group/del',array('id'=>$group['id']))}" onclick="return chkget({$group.id});" id="{$group.id}"><i class="fa fa-times" style="color:red">删除</i></a>
                                    </td>
                                </tr>
                            </volist>

                            </tbody>
                        </table>
                    </div>

                    <div class="_page">{$_page}</div>

                </div>
            </div>
        </div>

    </div>
    <script>
        $('#1').attr('class','active');
    </script>
</block>